package com.divine.wn.car.service;

import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.divine.wn.car.persistence.WorkflowMapper;
import com.divine.wn.car.vo.WorkflowVO;

@Service
public class WorkflowService {
	@Autowired
	private WorkflowMapper workflowMapper;
	
	//@Transactional  在需要事务的时候加上这个标签。
	@Transactional
	public void insertWorkFlow(HashMap<String,Object> map){
			workflowMapper.insertWorkflow(map);
			workflowMapper.updateWorkflow(map);
	}
	@Transactional
	public void updateWorkflow(HashMap<String,Object> map){
			workflowMapper.updateWorkflow(map);
	}
	

}
